mapping = {
    "mappings": {
        "properties": {
            "nm": {
                "type": "keyword"
            },
            "fssj": {
                "type": "date",
                "format": "yyyy-MM-dd"
            },
            "sjmc": {
                "type": "text",
                "analyzer": "ik_max_word"
            },
            "sjms": {
                "type": "text",
                "analyzer": "ik_max_word"
            },
            "ssly": {
                "type": "keyword"
            },
            "lyss": {
                "type": "keyword"
            },
            "entities": {
                "type": "keyword"
            },
            "entities_organization": {
                "type": "keyword"
            },
            "entities_person": {
                "type": "keyword"
            },
            "entities_place": {
              "type": "keyword"
            },
            "keywords": {
                "type": "keyword"
            },
            "vector": {
                "type": "dense_vector",
                "dims": 512,
                "index": False
            },
            "contentVector": {
                "type": "dense_vector",
                "dims": 512,
                "index": False
            },
            "titleContentVector": {
                "type": "dense_vector",
                "dims": 512,
                "index": False
            }
        }
    }
}
# 用户名
ELASTIC_USERNAME = "elastic"
# 用户密码
ELASTIC_PASSWORD = "iie123$%^"
# 集群地址
ELASTIC_ADDRESS = ["http://10.26.32.92:9222"]

# 读取索引
READ_INDEX_NAME = "test_new_entities"
# 写入索引
WRITE_INDEX_NAME = "test_new_vector_entities"
NUM_REPLICA = 0
MAX_RESULT_WINDOW = 100000
start_date = "2022-04-20"
end_date = "2022-04-30"
READ_BATCH_SIZE = 1000
vector_service_url = "http://localhost:6003/model/extract/vector"
vector_batch_size = 100
settings = {
    "settings": {
        "number_of_shards": 1,
        "number_of_replicas": NUM_REPLICA,
        "max_result_window": MAX_RESULT_WINDOW
    }
}
